package com.xiaoshuidi.cloud.module.finance.dal.dataobject.invoice;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 发票明细项
 * @author Auto generated
 * @date Fri Jul 14 15:28:57 CST 2023
 **/
@Data
@Builder
@EqualsAndHashCode
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "finance_invoice_record_item", autoResultMap = true)
public class FinanceInvoiceRecordItemDO {

    @TableId
    private Integer id;
    /**
     * 1蓝票2红票
     */
    private Integer type;
    private Long recordId;
    /**
     * 费用名称
     */
    private String name;
    /**
     * 费项id
     */
    private Long feeId;
    /**
     * 费项名称
     */
    private String feeName;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 规格型号
     */
    private String specName;
    /**
     * 单位
     */
    private String unit;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 单价
     */
    private java.math.BigDecimal unitAmount;
    /**
     * 开票金额(不含税)
     */
    private java.math.BigDecimal totalAmount;
    /**
     * 税率
     */
    private java.math.BigDecimal taxRate;
    /**
     * 税额
     */
    private java.math.BigDecimal tax;
    /**
     * 税收分类编码
     */
    private String taxCategoryNo;
    private java.time.LocalDateTime createTime;
    @TableLogic
    private Boolean deleted;
}
